﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LoA.CameraEngine.Entities;
using LoA.Shared.Interfaces;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;

namespace LoA.CameraEngine {
	public partial class CameraComponent {
		bool inputLock;

		public override void Update(GameTime gameTime) {
			if (!this.Suspended) {
				this.UpdateDayTime( );
				this.Processor.Update(gameTime, InputEngine);

				if (!inputLock && Keyboard.GetState( ).IsKeyDown(Keys.Home)) {
					inputLock = true;
					Engine.DeviceManager.IsFullScreen = !Engine.DeviceManager.IsFullScreen;
					Engine.DeviceManager.ApplyChanges( );
				} else
					inputLock = false;
			}

			base.Update(gameTime);
		}
	}
}
